home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
irc_i_dodatki
/
mcf4amirc
/
rexx
/
mcf_mkb.amirx
< prev
next >
Wrap
Text File
|
1996-09-17
|
2KB
|
15 lines
/* MCF_MKB.AMIRX
// $VER: MCF_MKB.AMIRX 4.4 (24.08.96)
\\ Written by Donald T. Becker (dtbecker@postoffice.ptd.net) IRC: StarDustr
// Please mail any bug reports/comments to the above address with a subject
\\ header of MCF.AMIRX.
//
\\ ** What to do with this file?
// Put this script in REXX: It will be used by MCF.AMIRX.
\\
// What else to do with this file.
\\ Type /Rx MCF_MKB User in the channel you wish to perform a Mass Kick-Ban.
// User Must be either a NickName or the UserHost of those to be Kick-Banned.
\\ or add Alias: MKB /Rx MCF_MKB %p
*/
;parse arg MCFenv MyNick Unick CurCh jdata Rnick reason;OPTIONS RESULTS;if ":%MKB" ~=upper(jdata) then signal Master;address value(MCFenv);Unick=upper(Unick);Rnick=upper(Rnick);Client=substr(MCFenv,pos(".",MCFenv)+1);CName=CurCh||"."||Client;ChUs=getclip(value(CName));signal DoIt;Master:;if MCFenv="" then exit;reason=MyNick Unick CurCh jdata Rnick||reason;Rnick=upper(MCFenv);getmynick;MyNick=upper(result);getchannel;CurCh=result;getusers;ChUs=upper(result);Unick=MyNick;signal DoIt;DoIt:;if 0=pos(Rnick,ChUs) then;IPAddr=Rnick;else;do;userhost Rnick;IPAddr=upper(result);atpos=pos("@",IPAddr)+1;IPAddr=substr(IPAddr,atpos);end;xl=length(IPAddr);userhost MyNick;if right(upper(result),xl)=IPAddr then;do;userhost Unick;if right(upper(result),xl) ~=IPAddr then exit;end;"say /Rx NFK 99";UIP="*!*@"||IPAddr;"say /ban "UIP;cnt=0;do i=1 by 1 until ChUs="";parse value ChUs with user ChUs;if 0 ~=pos("@",user) then user=substr(user,2);if MyNick=user then iterate;if Unick=user then iterate;userhost user;UH=upper(result);if 0=pos(IPAddr,UH) then iterate;"say /kick " CurCh user reason;end i;"RAW PRIVMSG "MyNick" :MKB_Done";exit